home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIS Performer 2.2 Friends Demo
/
SGI IRIS Performer 2.2 Friends Demo.iso
/
friends
/
openworlds
/
wrl
/
fish.wrl
< prev
next >
Wrap
Text File
|
1997-11-22
|
6KB
|
261 lines
#VRML V2.0 utf8
Group {
children[
DEF FishHead Group {
children [
DEF Eye1 Transform {
translation .2 .15 .1
children
Group {
children [
Shape {
appearance Appearance {
material Material{ diffuseColor 1 1 1 }
}
geometry Sphere { radius .1 }
}
Transform {
translation .03 0 0
children [
Shape {
appearance Appearance {
material Material{ diffuseColor 0 0.2 0.9 }
}
geometry Sphere { radius .08 }
}
Transform {
translation .025 0 0
children [
DEF pupil Shape {
appearance Appearance {
material Material { diffuseColor 0.1 0.1 0.1 }
}
geometry Sphere {radius .06 }
} # Pupil
]
}
]
}
]
} #Eye Group
}
DEF Eye2 Transform {
translation -.2 .15 .1
rotation 0 0 1 3.1415
children
Group {
children [
Shape {
appearance Appearance {
material Material{ diffuseColor 1 1 1 }
}
geometry Sphere { radius .1 }
}
Transform {
translation .03 0 0
children [
Shape {
appearance Appearance {
material Material{ diffuseColor 0 0.2 0.9 }
}
geometry Sphere { radius .08 }
}
Transform {
translation .025 0 0
children [
DEF pupil Shape {
appearance Appearance {
material Material { diffuseColor 0.1 0.1 0.1 }
}
geometry Sphere {radius .06 }
} # Pupil
]
}
]
}
]
} #Eye Group
}# Eye2
DEF Head Shape {
appearance Appearance {
material DEF GOLDIE Material { diffuseColor 0.8 0.2 0 }
}
geometry IndexedFaceSet {
coord Coordinate {
point [ 0 0 .6, 0 .6 0, .3 0 0, 0 -.6 0, -.3 0 0 ]
}
coordIndex [ 0, 2, 1, -1,
0, 3, 2, -1,
0, 4, 3, -1,
0, 1, 4, -1 ]
normalPerVertex TRUE
normal Normal {
vector [
0 0 -1,
0 -1 0,
-1 0 0,
0 1 0,
1 0 0
]
}
normalIndex [ 0, 1, 2, 3, 4 ]
}
}
]
}#FishHead Group
DEF Body Transform {
children
Shape{
appearance Appearance {
material USE GOLDIE
}
geometry IndexedFaceSet {
coord Coordinate {
point [ 0 0 -1.2, 0 .6 0, .3 0 0, 0 -.6 0, -.3 0 0 ]
}
coordIndex [ 0, 1, 2, -1,
0, 2, 3, -1,
0, 3, 4, -1,
0, 4, 1, -1 ]
normalPerVertex TRUE
normal Normal {
vector [
0 0 -1,
0 -1 0,
-1 0 0,
0 1 0,
1 0 0
]
}
normalIndex [ 0, 1, 2, 3, 4 ]
}
}
}#Body
DEF Tail Transform {
translation 0 0 -1
children[
DEF TailBody Transform {
children
Shape{
appearance Appearance {
material USE GOLDIE
}
geometry IndexedFaceSet {
coord Coordinate {
point [ 0 0 0,
0 .4 -.4,
.1 0 -.4,
0 -.4 -.4,
-.1 0 -.4
0 0 -.6 ]
}
coordIndex [ 0, 2, 1, -1,
0, 3, 2, -1,
0, 4, 3, -1,
0, 1, 4, -1,
5, 4, 1, -1,
5, 3, 4, -1,
5, 1, 2, -1,
5, 2, 3, -1 ]
normalPerVertex TRUE
normal Normal {
vector [
0 0 -1,
0 -1 0,
-1 0 0,
0 1 0,
1 0 0,
0 0 1
]
}
normalIndex [ 0, 1, 2, 3, 4, 5 ]
}
}
}#TailBody
DEF TailFin Shape {
appearance Appearance {
material USE GOLDIE
}
geometry IndexedFaceSet {
coord Coordinate {
point [ 0 0 0,
0 1 -1.0
0 1 -1.6,
0 .8 -1.2,
0 0 -1,
0 -.8 -1.2,
0 -1 -1.6,
0 -1 -1
]
}
coordIndex [ 0, 1,2,3,4,5,6,7, -1,
0,7,6,5,4,3,2,1,-1 ]
normalPerVertex TRUE
normal Normal {
vector [
0 0 -1,
0 -1 0,
-1 0 0,
0 1 0,
1 0 0,
0 0 1,
0 0 1,
0 0 1,
0 0 1
]
}
normalIndex [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ]
}
}#TailFin
]
}#Tail
DEF MainFins Transform{
children
Shape{
appearance Appearance {
material USE GOLDIE
}
geometry IndexedFaceSet {
coord Coordinate {
point [ 0 .6 0, 0 .9 -.3, 0 1.2 -.6, 0 1.3 -1,
0 .9 -.75, 0 .6 -.6, 0 0 -.9, 0 -.6 -.6,
0 -.9 -.75, 0 -1.3 -1, 0 -1.2 -.6,
0 -.9 -.3, 0 -.6 0]
}
coordIndex [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, -1,
0, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, -1]
normalPerVertex TRUE
normal Normal {
vector [
0 0 -1,
0 -1 0,
-1 0 0,
0 1 0,
1 0 0,
0 0 1, 0 0 1, 0 0 1, 0 0 1, 0 0 1, 0 0 1, 0 0 1,
0 0 1
]
}
normalIndex [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 , 11, 12]
}
}
}
]
}